<%@page import="com.is.exportword.ExportWord"%>
<%@page import="com.jspsmart.upload.SmartUpload"%>
<%@page import="com.is.util.ParamUtil"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'pic.jsp' starting page</title>
  </head>
  
  <body>
<%

	String path = request.getRealPath("/");
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
	String fileName = System.currentTimeMillis() + ".doc";
	String realPath = path + "\\DownloadXls\\" + fileName;
	//String visitPath = basePath + "/DownloadXls/" + fileName;
	//ExportOneClassDetail.ExportOneClassAllAttendance(realPath, request);
	String picBasePath =this.getServletConfig().getServletContext().getRealPath("/");
	String absolutePath = basePath+fileName.replace("/InterStu/", "").replace("/", "\\");
	new ExportWord().createDoc(realPath,28,picBasePath);

	SmartUpload smartUpload = new SmartUpload();
	smartUpload.initialize(pageContext);
	smartUpload.setContentDisposition(null);
	smartUpload.downloadFile(realPath);
	out.clear();
 	out=pageContext.pushBody();

 %>
  </body>
</html>
